Skip to content

Telemetry Updates#149

Merged
r-dilip merged 2 commits into
ci_featurefrom
dilipr/telemetryFixes
Oct 25, 2018
Merged

Telemetry Updates#149
r-dilip merged 2 commits into
ci_featurefrom
dilipr/telemetryFixes

Conversation

@r-dilip

@r-dilip r-dilip commented Oct 23, 2018

Copy link
Copy Markdown
Contributor

No description provided.

@r-dilip r-dilip requested a review from a team October 23, 2018 17:01
Comment thread source/code/go/src/plugins/oms.go Outdated
pluginConfig, err := ReadConfiguration(pluginConfPath)
if err != nil {
Log("Error Reading plugin config path : %s \n", err.Error())
SendException(err)

@vishiy vishiy Oct 23, 2018

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You might want to send the string that you are logging below this line as well. Else you dont know from where all these errors are coming from and hard to match to code. Applicable to all SendException calls..

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good

if len(splitStrings) > 0 && len(splitStrings) < 10 {
CommonProperties["SubscriptionID"] = splitStrings[2]
CommonProperties["ResourceGroupName"] = splitStrings[4]
CommonProperties["ClusterName"] = splitStrings[8]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check for bounds rather than assuming [8] exists

Comment thread source/code/go/src/plugins/telemetry.go
Comment thread source/code/go/src/plugins/telemetry.go
@r-dilip r-dilip merged commit f0b5a61 into ci_feature Oct 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants